<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<p id="p1">段落1</p>
		<p>段落2</p>
		<h1>-------------</h1>
		<p>段落3</p>
		<p>段落4<span>****</span></p>
		<p>段落5</p>
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script type="text/javascript">
			$("p,h1").wrapInner('<div></div>');
			$("#p1").click(function () {
				alert($(this).html());
			});
			var $cp=$("#p1").clone(true).attr("id","pbak").text("我是克隆的");
			$cp.appendTo("body");
		</script>
	</body>
</html>
